// index.js
Page({
  data: {
    msg: "hello"
  },
  login: function() {
    console.log("登录")
    wx.login({
      success: (res) => {
        console.log(res);
        this.setData({
          code: res.code
        })
      },
    })
  },
  sendRequest() {
    console.log("点击请求发送按钮");
    wx.request({
      url: 'http://localhost:8080/user/shop/status',
      method: 'GET',
      success: (res) => {
        console.log(res);
        this.setData({
          result: res.data.data
        })
      }
    })
  }
})
